# 1.读写txt
with open('spider.txt', 'a+', encoding='utf-8') as f:
    f.read()
    f.write('读写word')
    print('OK!')